@extends('admin.layout.baseDoing')
@section('add_css')

@endsection
@section('content')
    <div class="layui-form layui-form-kongqi" id="layuiadmin-form" id="layuiadmin-form">
        {{ csrf_field() }}
        {{ method_field('PUT') }}
        <div class="layui-form-item">
            <label for="" class="layui-form-label"><strong class="item-required">*</strong>地区</label>
            <div class="layui-input-block">
                <select name="area" lay-search>
                        @foreach($area as $key => $v)
                            <option value="{{$key}}" {{ isset($show->area) && $key == $show->area ? 'selected' : '' }} >{{$v}}</option>
                        @endforeach
                </select>
            </div>
        </div>
        @include('admin.tpl.form.text',[
                'data'=>[
                'name'=>'server_name',
                'title'=>'服务器名称',
                'tips'=>'',
                'value'=>$show->server_name,
                'rq'=>'rq'
        ]])
        <div class="layui-form-item">
            <label for="" class="layui-form-label"><strong class="item-required">*</strong>操作系统</label>
            <div class="layui-input-block">
                <select name="server_type" lay-search>
                     <option value="1" {{ isset($show->server_type) && 1 == $show->server_type ? 'selected' : '' }} >Linux</option>
                     <option value="2" {{ isset($show->server_type) && 2 == $show->server_type ? 'selected' : '' }} >Windows</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><strong class="item-required">*</strong>价格</label>
            <div class="layui-input-block" >
                <input type="text" name="price" placeholder="￥" autocomplete="off" class="layui-input" value="{{ isset($show->price) ? $show->price : '' }}">
            </div>
        </div>
        @include('admin.tpl.form.submit')


    </div>
@endsection
@section('foot_js')
    <script>
        layui.use(['index', 'uploader'], function () {
            var uploader = layui.uploader;
            uploader.one("#thumbUpload");

        })
    </script>

@endsection